<!DOCTYPE html>
<html <?php language_attributes(); ?>>

    <head>
        <meta charset="<?php bloginfo('charset'); ?>" />
        <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
        <?php if (is_search()) { ?>
            <meta name="robots" content="noindex, nofollow" /> 
        <?php } ?>

        <title>
            <?php
            if (function_exists('is_tag') && is_tag()) {
                single_tag_title("Tag Archive for &quot;");
                echo '&quot; - ';
            } elseif (is_archive()) {
                wp_title('');
                echo ' Archive - ';
            } elseif (is_search()) {
                echo 'Search for &quot;' . wp_specialchars($s) . '&quot; - ';
            } elseif (!(is_404()) && (is_single()) || (is_page())) {
                wp_title('');
                echo ' - ';
            } elseif (is_404()) {
                echo 'Not Found - ';
            }
            if (is_home()) {
                bloginfo('name');
                echo ' - ';
                bloginfo('description');
            } else {
                bloginfo('name');
            }
            if ($paged > 1) {
                echo ' - page ' . $paged;
            }
            ?>
        </title>

        <link rel="shortcut icon" href="/favicon.ico">
        <link href='http://fonts.googleapis.com/css?family=Taprom|Khmer|Suwannaphum|Content|Moul' rel='stylesheet' type='text/css'>
        <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ?>/css/anythingslider.css" />
        <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>">
        <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ?>/css/superfish.css" />
        <link rel="stylesheet" media="screen" href="<?php echo get_stylesheet_directory_uri() ?>/css/superfish-navbar.css" /> 
        <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
        <?php
        if (is_home()) {
            ?>
            <script>
                var isHome = 1;
            </script>
            <?php
        }
        ?>


        <?php if (is_singular())
            wp_enqueue_script('comment-reply');
        ?>

<?php wp_head(); ?>
    </head>

    <body <?php body_class(); ?>>
        <div id="page-wrap">

            <div id="header">
                <div class="container">
                    <div class="container">

                        <div id="top_menu">
                            <?php
                            wp_nav_menu(array(
                                'menu' => 'Top Menu',
                                'menu_class' => 'top_left_menu'
                            ));
                            ?>  
                            <a class="feed" href="http://www.healthcambodia.com/feed/" ><img src="<?php echo get_template_directory_uri() ?>/images/RSS.png"/></a>
                            <div class="lang_bar">
                                <a href="#"><img src="<?php echo get_template_directory_uri() ?>/images/kh.png" />ភាសាខ្មែរ</a>
                                <a href="#"><img src="<?php echo get_template_directory_uri() ?>/images/gb.png" />English</a>
                            </div>
                        </div>
                        <div id="hgroup">
                            <div class="logo">
                                <h1><a href="<?php echo WP_HOME; ?>">
                                        <img src="<?php echo get_stylesheet_directory_uri() ?>/images/logo.png" alt="" />
                                    </a></h1>
                            </div>
                            <div class="top_banner">
                                <div id="hc_banner" class="pics"> 
                                    <a href="http://www.healthcambodia.com"><img src="<?php echo get_template_directory_uri() ?>/images/banner1.jpg" width="700" height="95" /> </a>
                                    <a href="http://www.healthcambodia.com/"><img src="<?php echo get_template_directory_uri() ?>/images/banner2.jpg" width="700" height="95" /> </a>
                                    <a href="http://www.healthcambodia.com/"><img src="<?php echo get_template_directory_uri() ?>/images/banner3.jpg" width="700" height="95" /> </a>
                                </div> 
                            </div>
                        </div>
                    </div>

                </div>

            </div>
            <div id="nav">
                <div class="container">
                    <?php
//if (is_home()){
                    wp_nav_menu(array(
                        'menu' => 'Home Menu',
                        'container' => 'sections',
                        'menu_class' => 'home-menu'
                    ));
//}
                    wp_nav_menu(array(
                        'menu' => 'Main Menu',
                        'container' => 'sections',
                        'menu_class' => 'main_menu sf-menu sf-navbar'
                    ));
                    ?>  

                    <div class="clearfix"></div>
                </div>
                <div id="sub_nav_bg" class="sub_nav_bg">&nbsp;</div>
                <div class="clearfix"></div>
            </div>